<?php
// +----------------------------------------------------------------------
// | Azthink通用开发平台 [ TOMORROW IS ANOTHER DAY ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018-2019 http://www.azthink.top All rights reserved.
// +----------------------------------------------------------------------
// | Author {__AUTHOR_DESCRIPTION__}
// +----------------------------------------------------------------------

namespace app\edu\validate;

use think\Validate;

/**
* {__CONTROLLER_DESCRIPTION__}验证器
* @author {__AUTHOR_DESCRIPTION__}
* @createAt {__CREATE_TIME__}
*/
class {__MODEL_NAME__} extends Validate{

	/**
	* 定义验证规则
	* 格式：'字段名'    =>    ['规则1','规则2'...]
	*
	* @var array
	*/
	protected $rule = [
		'name' => 'require',
		'title' => 'require',
	];

	/**
	* 定义错误信息
	* 格式：'字段名.规则名'    =>    '错误信息'
	*
	* @var array
	*/
	protected $message = [
		'name.require' => '{__CONTROLLER_DESCRIPTION__}标识不能为空',
		'title.require' => '{__CONTROLLER_DESCRIPTION__}名称不能为空',
	];


}